<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 
<html>
<head>
<title>Pages</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
</head>
<body MS_POSITIONING="GridLayout" onload="page_Load()">
<SELECT id="selMenus" runat="server" size="8" onchange="filterByMenuID(this.value)" NAME="selMenus"></SELECT>
<TABLE>
	<TR valign="top">
		<TD>
			<TABLE datasrc="#dsoMenuPages" id="tblMenuPages" onreadystatechange="attachBehavior(this)" style="FONT: icon" selectable="true" onrowclick="showNameSpaces()" hiddenFields="id,pageurl,pageid,menuid,namespaceid">
				<THEAD><TR valign="bottom" bgcolor="menu"><TH clone=" "></TH></TR></THEAD>
				<TBODY><TR align="left" style="CURSOR:hand"><TD align="left" clone=" " nowrap><SPAN dataFld="*" style="MARGIN-LEFT: 5px" DATAFORMATAS="html"></SPAN></TD><TD onclick="MP_Rem(this)" style="CURSOR: hand">X</TD></TR></TBODY>
				<TFOOT>
					<TR><TD colspan="10"><HR></TD></TR>
					<TR>
						<TD><INPUT type="button" value="Add" onclick="addMenuPage()"></TD>
						<TD><INPUT id="txtTabIndex" style="width:100%"></TD>
						<TD><INPUT id="txtPageTypeID" style="width:100%"></TD>
						<TD><SELECT id="selPages" runat="server" NAME="selPages"></SELECT></TD>
						<TD><SELECT id="selParentMenu" runat="server"></SELECT></TD>
					</TR>
				</TFOOT>
			</TABLE>
		</TD>
	</TR>
</TABLE>
<SPAN id="spnMenuPages"><ASP:LITERAL ID="ltrMenuPages" Runat="server"></ASP:LITERAL></SPAN>
<OBJECT id="dsoMenuPages" table="tblMenuPages" height="0" width="0" classid="clsid:BD96C556-65A3-11D0-983A-00C04FC29E33" VIEWASTEXT>
	<PARAM NAME="ExecuteOptions" VALUE="2">
	<PARAM NAME="FetchOptions" VALUE="3">
	<PARAM NAME="SortDirection" VALUE="-1">
	<PARAM NAME="InternetTimeout" VALUE="300000">
</OBJECT>
</body>
</html>
<SCRIPT language="javascript" src="/include/Common.js"></SCRIPT>
<SCRIPT language="javascript" src="/include/RDS.js"></SCRIPT>
<SCRIPT language="javascript" src="/include/SOAP.js"></SCRIPT>
<SCRIPT language="javascript" src="Common/Admin.js"></SCRIPT>
<SCRIPT language="javascript">
function page_Load(){
	loadDSO(dsoMenuPages,spnMenuPages.innerHTML);
	dsoMenuPages.table = "";
}
function reloadAll(){
	var co = ws.createCallOptions("MP_Get",undefined,false);
	var ret = WS(co);
	if( showSOAPError(ret) )return;
	loadDSO(dsoMenuPages,ret.value,null,true);
}
function showNameSpaces(){
	var row = event.srcRow;
	var id = fieldByName(row,"ID");
	alert(id);
}
function MP_Rem(el){
	event.cancelBubble = true;
	if( !WS )return alert("WebService is loading. Try agan!");
	var ret = WS(CO("MP_Rem"),rsField(el,"ID"));
	if( showSOAPError(ret) )return;
	reloadAll();
}
function addMenuPage(){
	if( !WS )return alert("WebService is loading. Try agan!");
	var ret = WS(CO("MP_Add"),_menuID(),_pageID(),txtTabIndex.value,txtPageTypeID.value,selParentMenu.value||0);
	if( showSOAPError(ret) )return;
	reloadAll();
}
function filterByMenuID(menuID){
	dsoMenuPages.recordset.filter = "MenuID="+menuID;
}
function attachBehavior(tbl){
	if( tbl.readyState != "complete" )return;
	tbl.addBehavior("/include/HTC/rowover_js.htc");
}
function _menuID(){return selMenus.value;}
function _pageID(){return selPages.value;}
</SCRIPT>
